<template>
  <view class="warn">
    <navBar title="报警"  ></navBar>
    <warnContent :reach="reach"/>
  </view>
</template>

<script>
import warnContent from "./warnContent.vue"
import navBar from "@/components/navbar/index.vue"
export default {
  components: {
    navBar,
    warnContent,
  },
  data() {
    return {
		reach:false
	}
  },
  //上拉刷新操作
  onReachBottom() {
    this.reach = !this.reach
  },
  //下拉刷新
  onPullDownRefresh() {
  	uni.reLaunch({
  	    url: '/pages/tabbar/warn/index'
  	})
  	uni.stopPullDownRefresh()
  },
}
</script>

<style scoped lang="scss">
.warn {
  background-color: $bg-color;
  .control {
    background-color: #fff;
  }
}
</style>
